<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');


class Briefing extends CI_Controller {
	
	public function __construct(){
		parent::__construct ();
		if(!$this->session->userdata('loggedin')) redirect('main', 'refresh');
	}
	
	/*public function index()
	{
		$this->lang->load('site', get_lang());
		$data['page'] = 'pages/briefing';
		$this->load->view('mainview', $data);		
	}*/
	
	public function segment($segment)
	{
		$date_format = '';
		switch ($this->session->userdata('language')){
			case 'pt': $date_format = 'Y-m-d'; break;
			case 'es': $date_format = 'Y-m-d'; break;
			case 'en': $date_format = 'Y-m-d'; break;
		}
		$this->lang->load('site', get_lang());
		$data['segment'] = $segment;
		$data['page'] = 'pages/briefing';
		$this->load->view('mainview', $data);
	}
}
